import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";

@Entity({
    name: 'article'
})
export class Article {
    @PrimaryGeneratedColumn()
    article_id!: number;

    @Column()
    article_user!: number;

    @Column()
    article_title!: string;

    @Column()
    article_time!: number;

    @Column()
    article_text!: string;

    @Column()
    article_backimg!: string;

    @Column()
    article_view!: number;
    
    @Column()
    categories_id!: string;
    
    @Column()
    tag_id!: string;
}
